package com.ruoyi.system.service;

import com.ruoyi.system.domain.JobFieldProtectiveFacilities;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 作业场地防护设施(JobFieldProtectiveFacilities)表服务接口
 *
 * @author makejava
 * @since 2022-11-15 15:08:35
 */
public interface JobFieldProtectiveFacilitiesService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    JobFieldProtectiveFacilities queryById(Integer id);

    /**
     * 分页查询
     *
     * @param jobFieldProtectiveFacilities 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<JobFieldProtectiveFacilities> queryByPage(JobFieldProtectiveFacilities jobFieldProtectiveFacilities, PageRequest pageRequest);


    List<JobFieldProtectiveFacilities> selectList(JobFieldProtectiveFacilities jobFieldProtectiveFacilities);

    /**
     * 新增数据
     *
     * @param jobFieldProtectiveFacilities 实例对象
     * @return 实例对象
     */
    JobFieldProtectiveFacilities insert(JobFieldProtectiveFacilities jobFieldProtectiveFacilities);

    /**
     * 修改数据
     *
     * @param jobFieldProtectiveFacilities 实例对象
     * @return 实例对象
     */
    JobFieldProtectiveFacilities update(JobFieldProtectiveFacilities jobFieldProtectiveFacilities);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    String importExcel(List<JobFieldProtectiveFacilities> jobFieldProtectiveFacilitiess, Boolean isUpdateSupport, String operName);


}
